<?php
namespace app\common\validate;
use think\Validate;
use think\Request;
class Message extends Validate{
    protected $rule =   [
        'content' => 'require',
    ];

    protected $message  =   [
        'content.require' => '内容不能为空',
    ];

    protected $scene = [
        
    ];
    
    protected function checkCode($value){
        $code = Request::instance()->session('code');
        if($code != $value){
            return '验证码输入错误';
        }
        else{
            return true;
        }
    }
}